import request from '@/js/request'

export default {
  // 用户登录
  loginSubmit: data => request({
    method: 'POST',
    url: '/user/auth',
    data
  }),
  // 用户注册接口
  registerSubmit: data => request({
    method: 'POST',
    url: '/user/register',
    data
  }),
  // 用户退出登录接口
  logout: () => request({
    method: 'PUT',
    url: '/user/logout'
  }),
}